<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Tools/AdminTimeline/index')}">大事记列表</a></li>
			<li><a href="{:U('Tools/AdminTimeline/add')}">添加大事记内容</a></li>
		</ul>

		<form class="well form-search" method="post" action="{:U('AdminTimeline/index')}">

			<input type="text" name="content" style="width: 300px;" value="{:I('request.content/s')}" placeholder="请输入内容">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('AdminTimeline/index')}">清空</a>
		</form>


		<form class="js-ajax-form" method="post">
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Tools/AdminTimeline/indexBat','type=delete')}">删除</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<!--<th width="50">ID</th>-->
						<th width="50">时间</th>
						<th width="200">内容</th>
						<th width="200">添加时间</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<foreach name="lists" item="v">
				<tr>
					<td style="vertical-align:middle;"><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$v['timeline_id']}" title="ID:{$v['partner_id']}"></td>
					<!--<td>{$v.timeline_id}</td>-->
					<td>{$v.timeline_year_month|date="Y-m-d",###}</td>
					<td>{$v.content}</td>
					<td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
					<td>
						<a href="{:U('Tools/AdminTimeline/edit','timeline_id='.$v['timeline_id'])}">编辑</a> |
						<a href="{:U('Tools/AdminTimeline/delete','timeline_id='.$v['timeline_id'])}" class="js-ajax-delete">删除</a>
					</td>
				</tr>
				</foreach>
				<tfoot>
					<tr>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<!--<th width="50">ID</th>-->
						<th width="50">时间</th>
						<th width="200">内容</th>
						<th width="200">添加时间</th>
						<th width="100">操作</th>
					</tr>
				</tfoot>
			</table>


			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Tools/AdminTimeline/indexBat','type=delete')}">删除</button>
			</div>
		</form>


		<nav>
			<ul class="pagination">
				{$page}
			</ul>
		</nav>


	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>